const Router = require("koa-router");//路由
const router = new Router();
const list = require("./list");

// 设置路由
router.get("/", async (ctx, next) => {
  ctx.body = '首页'
})
router.get("/info", async (ctx, next) => {
  ctx.body = '详情'
})
router.use('/list', list.routes(), list.allowedMethods())
module.exports = router